import { defineStore } from 'pinia';
import { ref } from 'vue';

export const useDeviceReaderStore = defineStore('device-reader', () => {
    const deviceName = ref('')
    const dataType = ref('')
    const address = ref('')
    const readValue = ref('')

    function reset() {
        deviceName.value = ''
        dataType.value = ''
        address.value = ''
        readValue.value = ''
    }

    return { deviceName, dataType, address, readValue, reset }
})
